package cn.qiao.rabbitmq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * desc:
 *
 * @author qiao
 * @date 2023年01月05日 15:59
 */
@RabbitListener(queues = "queue_b")
@Component
public class BConsumer {

    @RabbitHandler
    public void process(Object o){
        System.out.println("BConsumer: 消费消息" + o.toString());
    }
}
